3.46 \(\int \frac {\sec (e+f x) (c-c \sec (e+f x))}{(a+a \sec (e+f x))^2} \, dx\)

Optimal. Leaf size=36 \[ \frac {\tan (e+f x) (c-c \sec (e+f x))}{3 f (a \sec (e+f x)+a)^2} \]

[Out]

1/3*(c-c*sec(f*x+e))*tan(f*x+e)/f/(a+a*sec(f*x+e))^2

________________________________________________________________________________________

Rubi [A]  time = 0.05, antiderivative size = 36, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.033, Rules used = {3950} \[ \frac {\tan (e+f x) (c-c \sec (e+f x))}{3 f (a \sec (e+f x)+a)^2} \]

Antiderivative was successfully verified.

[In]

Int[(Sec[e + f*x]*(c - c*Sec[e + f*x]))/(a + a*Sec[e + f*x])^2,x]

[Out]

((c - c*Sec[e + f*x])*Tan[e + f*x])/(3*f*(a + a*Sec[e + f*x])^2)

Rule 3950

Int[csc[(e_.) + (f_.)*(x_)]*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_)*(csc[(e_.) + (f_.)*(x_)]*(d_.) + (c_))
^(n_.), x_Symbol] :> Simp[(b*Cot[e + f*x]*(a + b*Csc[e + f*x])^m*(c + d*Csc[e + f*x])^n)/(a*f*(2*m + 1)), x] /
; FreeQ[{a, b, c, d, e, f, m, n}, x] && EqQ[b*c + a*d, 0] && EqQ[a^2 - b^2, 0] && EqQ[m + n + 1, 0] && NeQ[2*m
 + 1, 0]

Rubi steps

\begin {align*} \int \frac {\sec (e+f x) (c-c \sec (e+f x))}{(a+a \sec (e+f x))^2} \, dx &=\frac {(c-c \sec (e+f x)) \tan (e+f x)}{3 f (a+a \sec (e+f x))^2}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.09, size = 23, normalized size = 0.64 \[ -\frac {c \tan ^3\left (\frac {1}{2} (e+f x)\right )}{3 a^2 f} \]

Antiderivative was successfully verified.

[In]

Integrate[(Sec[e + f*x]*(c - c*Sec[e + f*x]))/(a + a*Sec[e + f*x])^2,x]

[Out]

-1/3*(c*Tan[(e + f*x)/2]^3)/(a^2*f)

________________________________________________________________________________________

fricas [A]  time = 0.45, size = 53, normalized size = 1.47 \[ \frac {{\left (c \cos \left (f x + e\right ) - c\right )} \sin \left (f x + e\right )}{3 \, {\left (a^{2} f \cos \left (f x + e\right )^{2} + 2 \, a^{2} f \cos \left (f x + e\right ) + a^{2} f\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(f*x+e)*(c-c*sec(f*x+e))/(a+a*sec(f*x+e))^2,x, algorithm="fricas")

[Out]

1/3*(c*cos(f*x + e) - c)*sin(f*x + e)/(a^2*f*cos(f*x + e)^2 + 2*a^2*f*cos(f*x + e) + a^2*f)

________________________________________________________________________________________

giac [A]  time = 0.30, size = 21, normalized size = 0.58 \[ -\frac {c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3}}{3 \, a^{2} f} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(f*x+e)*(c-c*sec(f*x+e))/(a+a*sec(f*x+e))^2,x, algorithm="giac")

[Out]

-1/3*c*tan(1/2*f*x + 1/2*e)^3/(a^2*f)

________________________________________________________________________________________

maple [A]  time = 0.80, size = 21, normalized size = 0.58 \[ -\frac {c \left (\tan ^{3}\left (\frac {e}{2}+\frac {f x}{2}\right )\right )}{3 f \,a^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sec(f*x+e)*(c-c*sec(f*x+e))/(a+a*sec(f*x+e))^2,x)

[Out]

-1/3/f*c/a^2*tan(1/2*e+1/2*f*x)^3

________________________________________________________________________________________

maxima [B]  time = 0.33, size = 94, normalized size = 2.61 \[ -\frac {\frac {c {\left (\frac {3 \, \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + \frac {\sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}}\right )}}{a^{2}} - \frac {c {\left (\frac {3 \, \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} - \frac {\sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}}\right )}}{a^{2}}}{6 \, f} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(f*x+e)*(c-c*sec(f*x+e))/(a+a*sec(f*x+e))^2,x, algorithm="maxima")

[Out]

-1/6*(c*(3*sin(f*x + e)/(cos(f*x + e) + 1) + sin(f*x + e)^3/(cos(f*x + e) + 1)^3)/a^2 - c*(3*sin(f*x + e)/(cos
(f*x + e) + 1) - sin(f*x + e)^3/(cos(f*x + e) + 1)^3)/a^2)/f

________________________________________________________________________________________

mupad [B]  time = 1.57, size = 20, normalized size = 0.56 \[ -\frac {c\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^3}{3\,a^2\,f} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((c - c/cos(e + f*x))/(cos(e + f*x)*(a + a/cos(e + f*x))^2),x)

[Out]

-(c*tan(e/2 + (f*x)/2)^3)/(3*a^2*f)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ - \frac {c \left (\int \left (- \frac {\sec {\left (e + f x \right )}}{\sec ^{2}{\left (e + f x \right )} + 2 \sec {\left (e + f x \right )} + 1}\right )\, dx + \int \frac {\sec ^{2}{\left (e + f x \right )}}{\sec ^{2}{\left (e + f x \right )} + 2 \sec {\left (e + f x \right )} + 1}\, dx\right )}{a^{2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(f*x+e)*(c-c*sec(f*x+e))/(a+a*sec(f*x+e))**2,x)

[Out]

-c*(Integral(-sec(e + f*x)/(sec(e + f*x)**2 + 2*sec(e + f*x) + 1), x) + Integral(sec(e + f*x)**2/(sec(e + f*x)
**2 + 2*sec(e + f*x) + 1), x))/a**2

________________________________________________________________________________________